class Solution(object):
    def findFinalValue(self, nums, original):
        nums = set(nums)
        while original in nums:
            original = 2 * original
        return original
